package de.szut.SudokuGUI;

import javax.swing.JLabel;

import de.szut.SudokuController.Controller;

public class Console implements IGUI{
	private Controller controller;
	
	public Console() {
		controller = Controller.getInstance();	
	}

	@Override
	public void refresh(int[][] field) {
	}
	
	public void show(String[][] field) {
		for (String[] s : field) {
			for (String p : s) {
				System.out.print(p);
			}
			System.out.println();
		}
	}

	@Override
	public void finish() {
		System.out.println("Sie haben gewonnen!");
		System.exit(0);
	}

	@Override
	public int[] getPosition(JLabel label) {
		return null;
	}

	@Override
	public void getEingabe() {
		int[] eingabe = controller.inputCoordinates();
		controller.setField(eingabe);
	}
	
	
}
